package com.lh.project.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 学号
     */
    @TableField(value = "stu_number")
    private Long stuNumber;

    /**
     * 用户钱包余额
     */
    @TableField(value = "wallet")
    private Long wallet;

    /**
     * 微信的openId
     */
    @TableField(value = "openId")
    private String openid;


    /**
     * 密码，加密存储
     */
    @TableField(value = "password")
    private String password;

    /**
     * 昵称，默认是用户id
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 人物头像
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}